Microsoft DirectX 8.1 (C++)

Programs.ItemsByKey

This topic applies to Windows XP Home Edition and Windows XP Professional only.

The ItemsByKey property retrieves a sorted collection of objects that meet the specified criteria.

Syntax

objPrograms.ItemsByKey(
  pproptype As MetaPropertyType,
  pprovider As GuideDataProvider,
  idLang As Long,
  vt As Long) As Programs

Parameters

pproptype

[in]  Specifies a MetaPropertyType object that is shared by all objects in the retrieved collection.

pprovider

[in]  Specifies a GuideDataProvider object that is shared by all objects in the retrieved collection. This parameter can be Nothing.

idLang

[in]  Specifies the language. A value of 0 specifies all languages.

vt

[in]  Specifies the Variant subtype of the metaproperty value. Only objects whose matching metaproperty is of this type are retrieved.

Error Codes

If the property fails, an error is raised and Err.Number is set to a value other than zero.

Return Values

This property returns a Programs object.

See Also